import request from '../utils/request.js';
//添加
export function WXAddAction(data){
	return request({
		url:'/WXAddAction',
		method:'POST',
		data,
	})
}
//修改
export function WXEditAction(data){
	return request({
		url:'/WXEditAction',
		method:'POST',
		data,
	})
}
//查原值
export function GoodsInquiryKeyOriginal(data){
	return request({
		url:'/GoodsInquiryKeyOriginal',
		method:'POST',
		data,
	})
}
//获取小程序样式
export function WXAppStyle(data){
	return request({
		url:'/WXAppStyle',
		method:'POST',
		data,
	})
}
//获取用户OpenID
export function WeChatOpenID(data){
	return request({
		url:'/WeChatSecretHLAction',
		method:'POST',
		data,
	})
}
//获取用户信息
export function WeChatMember(data){
	return request({
		url:'/WXMemberInfoAction',
		method:'POST',
		data,
	})
}
//商户认证
export function WXDealerAuthen(data){
	return request({
		url:'/WXDealerAuthentication',
		method:'POST',
		data,
	})
}
//获取活动商品列表
export function WXActivityGoodsAll(data) {
	return request({
		url: '/WXActivityGoodsAll',
		method: 'POST',
		data,
	})
}
//获取地址列表
export function getAddressList(data) {
	return request({
		url: '/WX2AddressAllAction',
		method: 'POST',
		data,
	})
}
//获取周边商铺信息
export function getWeChatAddressHLAction(data) {
	return request({
		url: '/WeChatAddressHLAction',
		method: 'POST',
		data,
	})
}
export function getOpenIDAction(data){
	return request({
		url:'/getWeChatOpenIDAction?grant_type=wechat_program',
		method:'POST',
		data,
	})
}
//添加
export function getAddAction(data){
	return request({
		url:'/getAddAction?grant_type=wechat_program',
		method:'POST',
		data,
	})
}
//修改
export function getEditAction(data){
	return request({
		url:'/getEditAction?grant_type=wechat_program',
		method:'POST',
		data,
	})
}
//查询带原值
export function getInquiryIDOriginal(data){
	return request({
		url:'/getInquiryIDOriginal?grant_type=wechat_program',
		method:'POST',
		data,
	})
}
export function getReceivingAction(data){
	return request({
		url:'/getReceivingAction?grant_type=wechat_program',
		method:'POST',
		data,
	})
}
export function setMemberShareAdd(data){
	return request({
		url:'/setMemberShareAdd?grant_type=wechat_program',
		method:'POST',
		data,
	})
}

